<?php

namespace DesignNew\SimpleFactory;

require('../vendor/autoload.php');
/**
 * 生产房门的工厂
 */
class Client{

    public function __construct()
    {
        $this->run();
    }

    public function run()
    {
        $door = \DesignNew\SimpleFactory\DoorFactory::makeDoor(100, 200);
        echo "Width:" . $door->getWidth() . PHP_EOL;
        echo "Height:" . $door->getHeight();
    }
}

$client = new Client();